#include "QxWorkspaceDataModel.hpp"

#include "QxWorkspaceDefine.hpp"

class QxWorkspaceDataModel::QxWorkspaceDataModelPrivate
{
public:

  QxWorkspaceDataModelPrivate( QxWorkspaceDataModel* me ) : m_self( me ) {
  }

  QxWorkspaceDataModel*         m_self;

  QxWorkspaceDefine             m_workspaceDefine;
  QVector<QxWellInfoDataModel*> m_wellInfos;
};

QxWorkspaceDataModel::QxWorkspaceDataModel( QObject* parent ) : QObject( parent )
{
}

QxWorkspaceDataModel::~QxWorkspaceDataModel()
{
}

const QString& QxWorkspaceDataModel::workspaceName() const
{
  return _pd->m_workspaceDefine.workspaceName;
}

void QxWorkspaceDataModel::setWorkspaceName( const QString& workspaceName )
{
  _pd->m_workspaceDefine.workspaceName = workspaceName;
}

const QString& QxWorkspaceDataModel::creator() const
{
  return _pd->m_workspaceDefine.creator;
}

void QxWorkspaceDataModel::setCreator( const QString& creator )
{
  _pd->m_workspaceDefine.creator = creator;
}

const QDateTime& QxWorkspaceDataModel::creationTime() const
{
  return _pd->m_workspaceDefine.creationTime;
}

void QxWorkspaceDataModel::setCreationTime( const QDateTime& creationTime )
{
  _pd->m_workspaceDefine.creationTime = creationTime;
}

const QString& QxWorkspaceDataModel::modifier() const
{
  return _pd->m_workspaceDefine.modifier;
}

void QxWorkspaceDataModel::setModifier( const QString& modifier )
{
  _pd->m_workspaceDefine.modifier = modifier;
}

const QDateTime& QxWorkspaceDataModel::modificationTime() const
{
  return _pd->m_workspaceDefine.modificationTime;
}

void QxWorkspaceDataModel::setModificationTime( const QDateTime& modificationTime )
{
  _pd->m_workspaceDefine.modificationTime = modificationTime;
}

const QVector<QxWellInfoDataModel*>& QxWorkspaceDataModel::wellInfos() const
{
  return _pd->m_wellInfos;
}

void QxWorkspaceDataModel::setWellInfos( const QVector<QxWellInfoDataModel*>& wellInfos )
{
  _pd->m_wellInfos = wellInfos;
}
